package exam.test6;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2020-08-20
 * Time: 17:47
 */

public class Triangle {
    private int width;
    private int height;

    public Triangle(int width, int height) {
        this.width = width;
        this.height = height;
    }

    @Override
    public String toString() {
        return "Triangle: width=" + width + ", height=" + height;
    }

    public static void main(String[] args) {
        Triangle triangle = new Triangle(40, 25);
        System.out.println(triangle.toString());
    }
}
